var mySwiper2 = new Swiper('#swiper2', {
	loop: true, // 循环模式选项
	slidesPerView: 1,
	autoplay: true,
	// 如果需要分页器
	pagination: {
		el: '.swiper-pagination',
		clickable: true,
	},
})
// var comtainer = document.getElementById('swiper2');
mySwiper2.el.onmouseenter = function () {
	mySwiper2.autoplay.stop();
};
// 鼠标离开 继续轮播
mySwiper2.el.onmouseleave = function () {
	mySwiper2.autoplay.start();
}

var mySwiper = new Swiper('#swiper', {
	loop: true, // 循环模式选项
	slidesPerView: 4,
	spaceBetween: 20,
	// 如果需要前进后退按钮
	navigation: {
		nextEl: '.swiper-button-next',
		prevEl: '.swiper-button-prev',
	},
})
// var awayList = document.querySelectorAll('.away')
// for (let i = 0; i < awayList.length; i++) {
// 	awayList[i].addEventListener('click', function () {
// 		window.open('https://landlord.zhihuifangdong.net/#/login')
// 	})
// }
var content = document.querySelector('.content')
content.addEventListener('click', function () {
	window.open('https://landlord.zhihuifangdong.net/#/login')
})
var goodList = document.querySelectorAll('#goods')
for (let i = 0; i < goodList.length; i++) {
	goodList[i].addEventListener('click', function () {
		location.href = 'goods.html'
	})
}
